package cn.dujc.superkid.activities;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.text.Html;
import android.widget.TextView;

import cn.dujc.core.ui.BaseActivity;
import cn.dujc.superkid.R;
import cn.dujc.superkid.URLImageParser;

public class ResolvtionActivity extends BaseActivity {
    String title;
    String jiexi;
    String daan;

    @Override
    public int getViewId() {
        return R.layout.activity_resolvtion;
    }

    @Override
    public void initBasic(Bundle savedInstanceState) {
        setTitle("查看解析");
        title=getIntent().getStringExtra("title");
        jiexi=getIntent().getStringExtra("jiexi");
        daan=getIntent().getStringExtra("daan");
        TextView tv=findViewById(R.id.good_que_title);
        URLImageParser imageParser=new URLImageParser(tv);
        tv.setText(Html.fromHtml(title,imageParser,null));

        TextView resolvtion_answer=findViewById(R.id.resolvtion_answer);
        URLImageParser imageParser1=new URLImageParser(resolvtion_answer);
        resolvtion_answer.setText(Html.fromHtml(jiexi,imageParser1,null));

        TextView correct_answer=findViewById(R.id.correct_answer);
        correct_answer.setText(daan);





    }
}
